<template>
	<div class="buy">
		<div class="buy-one">
			<router-link to="/details">购物车</router-link>
		</div>
		<svg class="icon" aria-hidden="true">
		  <use xlink:href="#icon-huabanfuben"></use>
		</svg>
	</div>
</template>
<script src="./iconfont.js"></script>
<script>
	export default{
		mounted(){
			console.log(this.$route.path==="/buy");
		}
	}
</script>
 
<style lang="scss">
	.buy{
		font-size: 2.5rem;
	}
	.buy-one{
		width: 100%;
		height: 1.5rem;
		background: #a3d4ff;
		text-align: center;
		font-size: 0.5rem;
		font-weight: bold;
		padding-top: 0.4rem;
		a{
			color: #fff;
		}
	}
</style>
